﻿@model IEnumerable<Post>

@functions {
    bool HasPosts() { return Model.Count() > 0; }
}
   
<div id="wrapper">
  <div id="header">
    <div id="head">
      <div id="logo">
        <a href="/">
          <img src="/content/images/logo.png" alt="Logo" />
        </a>
      </div>
      <div id="socialmedia_icons">
        <div class="clear"></div>
      </div>
      <div class="clear"></div>
    </div>

    <div id="navi_container">
      <div id="navi">
        
      </div>
    </div>
    <div class="clear"></div>
  </div>

  <div id="container">
    
    <div id="custom_header">
      <img src="/content/images/default_header.jpg" />
    </div>

	<div id="wrap">
		<div id="content">
		
    @if (HasPosts())
    {
       foreach (var post in Model) {
			<div id="post-" class="post">
				
				<div class="postmeta">
					<div class="postmeta_links">
						Autor |
						<a href="#">24/12</a>
					</div>
					<div class="postcomments">
						<a href="#comments">Nenhum comentário</a>
					</div>
					<div class="clear"></div>
				</div>
				
				<h2><a href="#" rel="bookmark">@post.Title</a></h2>
				
				<div class="entry">
					@Html.Raw(@post.Content)
					<div class="clear"></div>
					
				</div>
				
				<div class="postinfo">
					Categoria: N/D | Tags: @post.Tags
				</div>

			</div>
			
			
				<div class="more_posts">
					<span class="post_links">Voltar Posts &nbsp; Próxima Página</span>
				</div>
  }
    }
			
		</div>


    <div id="sidebar">
      <ul>

        <li>
          <h2>Archives</h2>
          <ul>
            
          </ul>
        </li>

      </ul>
    </div>
	</div>

  </div>
  <div id="footer">
    <div id="foot">
      <div class="credit_link">
        <a href="">Wordpress Theme by ThemeZee</a>
      </div>
      <div class="clear"></div>
    </div>
  </div>
</div>

